package service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * @Author: fancyears·milos·malvis
 * @Description:
 * @Date: Created in  2019/4/22 11:53
 * @Modified By:
 */
public class SimplePlayerServiceUse {
    @Autowired
    @Qualifier(value = "simplePlayerServiceX")//已选用不同的bean进行注入
    SimplePlayerService simplePlayerService;

    public void show() {
        System.out.println(simplePlayerService.getServiceName());
    }

}
